<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>1.动画</title>
		<style>
			h1{
				background-color: orange;
			}
			.likai {
				animation: atguigu 1s linear;
			}
			.guolai {
				animation: atguigu 1s linear reverse;
			}
			@keyframes atguigu {
				0%{
					transform: translateX(0px);
				}
				100%{
					transform: translateX(-100%);
				}
			}
		</style>
	</head>
	<body>
		<h1>你好</h1>
	</body>
</html>